﻿<%@ Page Title="Alunos" Language="C#" MasterPageFile="~/Site.Master"
    AutoEventWireup="true" CodeBehind="CadastroAluno.aspx.cs" Inherits="AcadPosApp.Cadastros.CadastroAluno" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <style type="text/css">
        .style2
        {
            width: 113px;
        }
        .style4
        {
            width: 12px;
        }
        .style10
        {
            width: 140px;
        }
        .style12
        {
            width: 138px;
        }
        .style13
        {
            width: 502px;
        }
        .style15
        {
            width: 173px;
        }
        .style20
        {
        }
        .style25
        {
        }
        .style31
        {
            height: 23px;
        }
        .style39
        {
            width: 159px;
        }
        .style46
        {
            width: 157px;
        }
        .style47
        {
            width: 234px;
        }
        .style48
        {
            width: 210px;
        }
        .style49
        {
            width: 176px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:Panel ID="pnlConsulta" runat="server" GroupingText="Consulta de Alunos">
                <table class="form-inline">
                    <tr>
                        <td colspan="2">
                            <asp:Label ID="Label1" runat="server" Text="Estado"></asp:Label>
                            <br />
                            <asp:DropDownList ID="ddlEstado" runat="server" Width="150px">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="style15">
                            <asp:Label ID="Label2" runat="server" Text="Descrição"></asp:Label>
                            <br />
                            <asp:TextBox ID="TxtPesquisa" required pattern="[çÇùÙúÚôÔõÕòÒóÓìÌíÍêÊèÈéÉáÁàÀãÃâÂaA-zZ\s]+$"
                                title="Apenas Letras." runat="server" Width="300px" MaxLength="150" 
                                style="margin-right: 3px"></asp:TextBox>
                        </td>
                        <td class="style10">
                            <br />
                            &nbsp;&nbsp;
                            <asp:Button ID="btnConsultar" runat="server" Text="Consultar" 
                                OnClick="btnConsultar_Click" Width="100px" />
                        </td>
                    </tr>
                </table>
                <br />
                <asp:GridView ID="gvwPesquisa" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                    CssClass="mGrid" DataKeyNames="MATRICULA" EmptyDataText="Dados não localizados..."
                    GridLines="Vertical" Width="55%" OnSelectedIndexChanged="gvwPesquisa_SelectedIndexChanged"
                    OnRowCommand="gvwPesquisa_RowCommand" 
                    OnRowCreated="gvwPesquisa_RowCreated" 
                    OnRowDataBound="gvwPesquisa_RowDataBound" 
                    onpageindexchanging="gvwPesquisa_PageIndexChanging">
                    <AlternatingRowStyle BackColor="#D3D3D3" />
                    <Columns>
                        <asp:CommandField ButtonType="Image" SelectImageUrl="~/Imagens/select.png" ShowSelectButton="True" />
                        <asp:TemplateField HeaderText="Editar" ShowHeader="False">
                            <ItemTemplate>
                                <abbr title="Editar aluno!">
                                    <asp:ImageButton ID="ImgAlterar" runat="server" CausesValidation="false" CommandName="Alterar"
                                        formnovalidate="formnovalidate" ImageUrl="~/Imagens/edit.png" Text="Alterar"
                                        Width="20px" />
                                </abbr>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" Width="1%" />
                            <ItemStyle HorizontalAlign="Center" Width="1%" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Excluir" ShowHeader="False">
                            <ItemTemplate>
                                <abbr title="Excluir aluno!">
                                    <asp:ImageButton ID="ImgExcluir" runat="server" CausesValidation="false" CommandName="Excluir"
                                        formnovalidate="formnovalidate" ImageUrl="~/Imagens/delete.png" OnClientClick="return ShowConfirm('Tem certeza que deseja excluir?', this.ID);"
                                        Text="Excluir" Width="20px" />
                                </abbr>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" Width="1%" />
                            <ItemStyle HorizontalAlign="Center" Width="1%" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="NOME" HeaderText="Nome">
                            <ItemStyle HorizontalAlign="Left" Width="70%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="EMAIL" HeaderText="Email">
                            <ItemStyle HorizontalAlign="Left" Width="20%" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="Dados Pessoais" ShowHeader="False">
                            <ItemTemplate>
                                <abbr title="Relatório de Dados Pessoais!">
                                    <asp:ImageButton ID="ImgRelatorio" runat="server" CausesValidation="false" CommandName="Relatorio"
                                        formnovalidate="formnovalidate" ImageUrl="~/Imagens/print.png" Text="Alterar"
                                        Width="30px" />
                                </abbr>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" Width="1%" />
                            <ItemStyle HorizontalAlign="Center" Width="1%" />
                        </asp:TemplateField>
                    </Columns>
                    <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                    <PagerStyle CssClass="pagination" ForeColor="Black" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#1E90FF" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#F1F1F1" />
                    <SortedAscendingHeaderStyle BackColor="#808080" />
                    <SortedDescendingCellStyle BackColor="#CAC9C9" />
                    <SortedDescendingHeaderStyle BackColor="#383838" />
                </asp:GridView>
                <br />
                <div class="legenda">
                    <asp:Button ID="btnIncluirDadosPessoais" formnovalidate="formnovalidate" runat="server"
                        Text="Inserir" OnClick="btnIncluir_Click" Width="100px" />
                    &nbsp;<asp:Button ID="btnIncluirDocumentosPend" formnovalidate="formnovalidate" runat="server"
                        Text="Documentos Pendentes" Visible="False" OnClick="btnIncluirDocumentosPend_Click"
                        Width="180px" />
                    &nbsp;<asp:Button ID="btnTitulacao" runat="server" formnovalidate="formnovalidate" 
                        OnClick="btnTitulacao_Click" Text="Titulações" Visible="False" 
                        Width="100px" />
                </div><br />
            </asp:Panel>
            <br />
            <asp:Panel ID="pnlEdicao" runat="server" GroupingText="Cadastro de Alunos" Visible="False">
                <table class="form-inline">
                    <tr>
                        <td colspan="5">
                            <asp:Label ID="Label3" runat="server" Text="Estado"></asp:Label>
                            <br />
                            <asp:DropDownList ID="ddlUFCad" runat="server" Width="150px">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="5">
                            <asp:Label ID="Label4" runat="server" Text="CPF"></asp:Label>
                            <br />
                            <asp:TextBox ID="TxtCPF" required="" pattern="[0-9]+$" title="Apenas números." runat="server"
                                Width="150px" MaxLength="11" AutoPostBack="True" 
                                OnTextChanged="TxtCPF_TextChanged"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                    <td colspan="3">
                        <asp:Label ID="Label31" runat="server" Text="Nome"></asp:Label>
                        <br />
                        <!-- <asp:TextBox ID="TxtNome" required pattern="[çÇùÙúÚôÔõÕòÒóÓìÌíÍêÊèÈéÉáÁàÀãÃâÂaA-zZ\s]+$" -->
                        <asp:TextBox ID="TxtNome" required="" pattern="^((.)(?!\2{3,}))+$" title="Somente são permitidos 3 caracteres iguais e consecutivos."
                        runat="server" MaxLength="150" Width="300px"></asp:TextBox>
                    </td>
                    <td>
                          <asp:Label ID="lblDataNasc" runat="server" Text="Data Nascimento"></asp:Label>
                        <br />
                        <asp:TextBox ID="txtDataNasc" runat="server" CssClass="form-control" 
                            MaxLength="10" Width="145px" Required="" ></asp:TextBox>
                        <asp:CalendarExtender ID="TxtDataNascimento_CalendarExtender" runat="server" Enabled="True"
                            TargetControlID="txtDataNasc">
                        </asp:CalendarExtender>
                    </td>
                    </tr>
                    <tr>
                        <td colspan="2" class="style46">
                            <asp:Label ID="Label6" runat="server" Text="RG"></asp:Label>
                            <br />
                            <asp:TextBox ID="TxtRG" Required="" pattern="[0-9]+$" title="Apenas números." runat="server"
                                MaxLength="20" Width="140px"></asp:TextBox>
                        </td>
                        <td class="style46">
                            <asp:Label ID="Label7" runat="server" Text="Órgão Expedidor"></asp:Label>
                            <br />
                            <asp:TextBox ID="TxtOrgaoExpedidor" runat="server" MaxLength="5" pattern="[çÇùÙúÚôÔõÕòÒóÓìÌíÍêÊèÈéÉáÁàÀãÃâÂaA-zZ\s]+$"
                                required="" title="Apenas Letras." Width="140px"></asp:TextBox>
                        </td>
                        <td class="style39">
                            <asp:Label ID="Label8" runat="server" Text="UF"></asp:Label>
                            <br />
                            <asp:DropDownList ID="ddlUFRG" runat="server" required="" Width="150px">
                                <asp:ListItem Value="AC">AC</asp:ListItem>
                                <asp:ListItem Value="AL">AL</asp:ListItem>
                                <asp:ListItem Value="AM">AM</asp:ListItem>
                                <asp:ListItem Value="AP">AP</asp:ListItem>
                                <asp:ListItem Value="BA">BA</asp:ListItem>
                                <asp:ListItem Value="CE">CE</asp:ListItem>
                                <asp:ListItem Value="DF">DF</asp:ListItem>
                                <asp:ListItem Value="ES">ES</asp:ListItem>
                                <asp:ListItem Value="GO">GO</asp:ListItem>
                                <asp:ListItem Value="MA">MA</asp:ListItem>
                                <asp:ListItem Value="MG">MG</asp:ListItem>
                                <asp:ListItem Value="MS">MS</asp:ListItem>
                                <asp:ListItem Value="MT">MT</asp:ListItem>
                                <asp:ListItem Value="PA">PA</asp:ListItem>
                                <asp:ListItem Value="PB">PB</asp:ListItem>
                                <asp:ListItem Value="PE">PE</asp:ListItem>
                                <asp:ListItem Value="PI">PI</asp:ListItem>
                                <asp:ListItem Value="PR">PR</asp:ListItem>
                                <asp:ListItem Value="RJ">RJ</asp:ListItem>
                                <asp:ListItem Value="RN">RN</asp:ListItem>
                                <asp:ListItem Value="RO">RO</asp:ListItem>
                                <asp:ListItem Value="RR">RR</asp:ListItem>
                                <asp:ListItem Value="RS">RS</asp:ListItem>
                                <asp:ListItem Value="SC">SC</asp:ListItem>
                                <asp:ListItem Selected="True" Value="SE">SE</asp:ListItem>
                                <asp:ListItem Value="SP">SP</asp:ListItem>
                                <asp:ListItem Value="TO">TO</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td class="style12">
                            <asp:Label ID="Label9" runat="server" Text="Data Expedição"></asp:Label>
                            <br />
                            <asp:TextBox ID="TxtDataExpedicao" CssClass="form-control" runat="server"
                                MaxLength="10" required="" Width="150px"></asp:TextBox>
                            <asp:CalendarExtender ID="TxtDataExpedicao_CalendarExtender" runat="server" Enabled="True"
                                TargetControlID="TxtDataExpedicao">
                            </asp:CalendarExtender>
                        </td>
                    </tr>       
                    <tr>
                        <td colspan="3" class="style20">
                            <asp:Label ID="Label10" runat="server" Text="Nacionalidade"></asp:Label>
                            <br />
                            <asp:TextBox ID="TxtNacionalidade" runat="server" MaxLength="50" 
                                pattern="[çÇùÙúÚôÔõÕòÒóÓìÌíÍêÊèÈéÉáÁàÀãÃâÂaA-zZ\s]+$" required="" 
                                title="Apenas Letras." Width="300px"></asp:TextBox>
                        </td>
                        <td class="style39">
                            <asp:Label ID="Label11" runat="server" Text="Naturalidade"></asp:Label>
                            <br />
                            <asp:TextBox ID="TxtNaturalidade" runat="server" MaxLength="50" 
                                pattern="[çÇùÙúÚôÔõÕòÒóÓìÌíÍêÊèÈéÉáÁàÀãÃâÂaA-zZ\s]+$" required="" 
                                Style="margin-bottom: 0px" title="Apenas Letras." Width="150px"></asp:TextBox>
                        </td>
                        <td class="style12">
                            <asp:Label ID="Label12" runat="server" Text="UF Naturalidade"></asp:Label>
                            <br />
                            <asp:DropDownList ID="ddlUFNaturalidade" runat="server" required="" 
                                Width="150px">
                                <asp:ListItem Value="AC">AC</asp:ListItem>
                                <asp:ListItem Value="AL">AL</asp:ListItem>
                                <asp:ListItem Value="AM">AM</asp:ListItem>
                                <asp:ListItem Value="AP">AP</asp:ListItem>
                                <asp:ListItem Value="BA">BA</asp:ListItem>
                                <asp:ListItem Value="CE">CE</asp:ListItem>
                                <asp:ListItem Value="DF">DF</asp:ListItem>
                                <asp:ListItem Value="ES">ES</asp:ListItem>
                                <asp:ListItem Value="GO">GO</asp:ListItem>
                                <asp:ListItem Value="MA">MA</asp:ListItem>
                                <asp:ListItem Value="MG">MG</asp:ListItem>
                                <asp:ListItem Value="MS">MS</asp:ListItem>
                                <asp:ListItem Value="MT">MT</asp:ListItem>
                                <asp:ListItem Value="PA">PA</asp:ListItem>
                                <asp:ListItem Value="PB">PB</asp:ListItem>
                                <asp:ListItem Value="PE">PE</asp:ListItem>
                                <asp:ListItem Value="PI">PI</asp:ListItem>
                                <asp:ListItem Value="PR">PR</asp:ListItem>
                                <asp:ListItem Value="RJ">RJ</asp:ListItem>
                                <asp:ListItem Value="RN">RN</asp:ListItem>
                                <asp:ListItem Value="RO">RO</asp:ListItem>
                                <asp:ListItem Value="RR">RR</asp:ListItem>
                                <asp:ListItem Value="RS">RS</asp:ListItem>
                                <asp:ListItem Value="SC">SC</asp:ListItem>
                                <asp:ListItem Selected="True" Value="SE">SE</asp:ListItem>
                                <asp:ListItem Value="SP">SP</asp:ListItem>
                                <asp:ListItem Value="TO">TO</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" class="style46">
                            <asp:Label ID="Label13" runat="server" Text="Gênero"></asp:Label>
                            <br />
                            <asp:DropDownList ID="ddlGenero" runat="server" required="" Width="140px">
                                <asp:ListItem Value="F">Feminino</asp:ListItem>
                                <asp:ListItem Value="M">Masculino</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td class="style46">
                            <asp:Label ID="Label14" runat="server" Text="Estado Civil"></asp:Label>
                            <br />
                            <asp:DropDownList ID="ddlEstadoCivil" runat="server" Height="30px" 
                                Width="140px">
                                <asp:ListItem>Solteiro(a)</asp:ListItem>
                                <asp:ListItem>Casado(a)</asp:ListItem>
                                <asp:ListItem>Divorciado(a)</asp:ListItem>
                                <asp:ListItem>Viúvo(a)</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td class="style39">
                            <asp:Label ID="Label15" runat="server" Text="Situação"></asp:Label>
                            <br />
                            <asp:DropDownList ID="ddlSituacao" runat="server" Width="150px">
                                <asp:ListItem Value="A">Ativo</asp:ListItem>
                                <asp:ListItem Value="I">Inativo</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td class="style12">
                            &nbsp;</td>
                    </tr>                    
                    <tr>
                        <td class="style20" colspan="3">
                            <asp:Label ID="Label16" runat="server" Text="E-mail"></asp:Label>
                            <br />
                            <asp:TextBox ID="TxtEmail" runat="server" CssClass="form-control" Height="30px" 
                                MaxLength="150" required="" type="email" Width="300px"></asp:TextBox>
                        </td>
                        <td class="style39">
                            &nbsp;</td>
                        <td class="style12">
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td colspan="2" class="style46">
                            <asp:Label ID="Label17" runat="server" Text="Telefone"></asp:Label>
                            <br />
                            <asp:TextBox ID="TxtDDDFone" runat="server" placeholder="0XX" required pattern="[0-9]+$"
                                MaxLength="3" Width="40px"></asp:TextBox>
                            &nbsp;<asp:TextBox ID="TxtTelefone" placeholder="XXXX-XXXX" name="phone" pattern="[0-9]{4,6}-[0-9]{3,4}$"
                                required="" runat="server" Width="95px" MaxLength="9"></asp:TextBox>
                        </td>
                        <td colspan="3">
                            <asp:Label ID="Label18" runat="server" Text="Celular"></asp:Label>
                            <br />
                            <asp:TextBox ID="TxtDDDCel" runat="server" MaxLength="3" pattern="[0-9]+$" placeholder="0XX"
                                Width="40px"></asp:TextBox>
                            &nbsp;<asp:TextBox ID="TxtCel" runat="server" MaxLength="9" name="phone" pattern="[0-9]{4,6}-[0-9]{3,4}$"
                                placeholder="XXXX-XXXX" Width="95px"></asp:TextBox>
                            <br />
                        </td>
                    </tr>
                     <tr>
                        <td class="style31" colspan="3">
                             <asp:Label ID="Label19" runat="server" Text="Pai"></asp:Label>
                             <br />
                             <asp:TextBox ID="TxtPai" runat="server" MaxLength="150" 
                                 pattern="[çÇùÙúÚôÔõÕòÒóÓìÌíÍêÊèÈéÉáÁàÀãÃâÂaA-zZ\s]+$" title="Apenas Letras." 
                                 Width="300px"></asp:TextBox>
                        </td>
                        <td class="style31" colspan="2">
                            <asp:Label ID="Label20" runat="server" Text="Mãe"></asp:Label>
                            <br />
                            <asp:TextBox ID="TxtMae" runat="server" MaxLength="150" 
                                pattern="[çÇùÙúÚôÔõÕòÒóÓìÌíÍêÊèÈéÉáÁàÀãÃâÂaA-zZ\s]+$" title="Apenas Letras." 
                                Width="300px"></asp:TextBox>
                         </td>
                    </tr>
                    <tr>
                        <td colspan="5">
                            <asp:Label ID="Label21" runat="server" Text="CEP"></asp:Label>
                            <br />
                            <asp:TextBox ID="TxtCEP" required placeholder="48330000" 
                                title="Apenas números." pattern="[0-9]+$" formnovalidate="formnovalidate" runat="server"
                                Width="195px" MaxLength="8"></asp:TextBox>
                            &nbsp;<asp:Button ID="btnConsultarCEP" formnovalidate="formnovalidate" runat="server" Text="Consultar"
                                OnClick="btnConsultarCEP_Click" Width="100px" />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="5">
                            <asp:Label ID="Label36" runat="server" Text="Endereço"></asp:Label>
                            <br />
                            <asp:TextBox ID="TxtEndereco" runat="server" MaxLength="200" Width="300px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                    <td class="style25" colspan="3">
                     <asp:Label ID="Label24" runat="server" Text="Número"></asp:Label>
                            <br />
                            <asp:TextBox ID="TxtNumero" runat="server" MaxLength="5" pattern="[0-9]+$" required=""
                                title="Apenas números." Width="100px"></asp:TextBox>
                        </td>                        
                        <td colspan="4">
                            <asp:Label ID="Label23" runat="server" Text="Complemento"></asp:Label>
                            <br />
                            <asp:TextBox ID="TxtComplemento" runat="server" MaxLength="100" Width="300px"></asp:TextBox>
                            <br />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="5">
                            <asp:Label ID="Label38" runat="server" Text="Bairro"></asp:Label>
                            <br />
                            <asp:TextBox ID="TxtBairro" runat="server" MaxLength="50" OnTextChanged="TxtBairro_TextChanged"
                                Width="300px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style25" colspan="3">
                            <asp:Label ID="Label26" runat="server" Text="Cidade"></asp:Label>
                            <br />
                            <asp:TextBox ID="TxtCidade" runat="server" MaxLength="50" 
                                pattern="[çÇùÙúÚôÔõÕòÒóÓìÌíÍêÊèÈéÉáÁàÀãÃâÂaA-zZ\s]+$" title="Apenas Letras." 
                                Width="300px"></asp:TextBox>
                        </td>
                        <td class="style39">
                            <asp:Label ID="Label29" runat="server" Text="UF"></asp:Label>
                            <br />
                            <asp:DropDownList ID="ddlUF" runat="server" Width="150px">
                                <asp:ListItem Value="AC">AC</asp:ListItem>
                                <asp:ListItem Value="AL">AL</asp:ListItem>
                                <asp:ListItem Value="AM">AM</asp:ListItem>
                                <asp:ListItem Value="AP">AP</asp:ListItem>
                                <asp:ListItem Value="BA">BA</asp:ListItem>
                                <asp:ListItem Value="CE">CE</asp:ListItem>
                                <asp:ListItem Value="DF">DF</asp:ListItem>
                                <asp:ListItem Value="ES">ES</asp:ListItem>
                                <asp:ListItem Value="GO">GO</asp:ListItem>
                                <asp:ListItem Value="MA">MA</asp:ListItem>
                                <asp:ListItem Value="MG">MG</asp:ListItem>
                                <asp:ListItem Value="MS">MS</asp:ListItem>
                                <asp:ListItem Value="MT">MT</asp:ListItem>
                                <asp:ListItem Value="PA">PA</asp:ListItem>
                                <asp:ListItem Value="PB">PB</asp:ListItem>
                                <asp:ListItem Value="PE">PE</asp:ListItem>
                                <asp:ListItem Value="PI">PI</asp:ListItem>
                                <asp:ListItem Value="PR">PR</asp:ListItem>
                                <asp:ListItem Value="RJ">RJ</asp:ListItem>
                                <asp:ListItem Value="RN">RN</asp:ListItem>
                                <asp:ListItem Value="RO">RO</asp:ListItem>
                                <asp:ListItem Value="RR">RR</asp:ListItem>
                                <asp:ListItem Value="RS">RS</asp:ListItem>
                                <asp:ListItem Value="SC">SC</asp:ListItem>
                                <asp:ListItem Selected="True" Value="SE">SE</asp:ListItem>
                                <asp:ListItem Value="SP">SP</asp:ListItem>
                                <asp:ListItem Value="TO">TO</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td class="style12">
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td colspan="5">
                            <asp:Label ID="Label30" runat="server" Text="Profissão"></asp:Label>
                            <br />
                            <asp:TextBox ID="TxtProfissao" runat="server" MaxLength="150" Width="300px"></asp:TextBox>
                            <br />
                        </td>
                    </tr>
                   <%-- <tr>
                        <td colspan="4">
                            <asp:Label ID="Label31" runat="server" Text="Curso de Graduação"></asp:Label>
                            <br />
                            <asp:TextBox ID="TxtCursoGraducao" runat="server" MaxLength="200" pattern="[çÇùÙúÚôÔõÕòÒóÓìÌíÍêÊèÈéÉáÁàÀãÃâÂaA-zZ\s]+$"
                                title="Apenas Letras." Width="280px"></asp:TextBox>
                        </td>
                        <td class="style8" colspan="2">
                            <asp:Label ID="Label34" runat="server" Text="Ano Conclusão"></asp:Label>
                            <br />
                            <asp:DropDownList ID="ddlAnoConclusao" runat="server" Width="90px">
                            </asp:DropDownList>
                            <br />
                        </td>
                        <td>
                            <br />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="7">
                            <asp:Label ID="Label33" runat="server" Text="Instituição"></asp:Label>
                            <br />
                            <asp:TextBox ID="TxtInstituicao" pattern="[çÇùÙúÚôÔõÕòÒóÓìÌíÍêÊèÈéÉáÁàÀãÃâÂaA-zZ\s]+$"
                                title="Apenas Letras." runat="server" Width="400px" MaxLength="200"></asp:TextBox>
                        </td>
                    </tr>--%>
                </table>
                <br />
                <div class="legenda">
                    <asp:Button ID="btnConfirmar" runat="server" Text="Confirmar" 
                        OnClick="btnConfirmar_Click" Width="100px" />
                    &nbsp; 
                    <asp:Button
                        ID="btnCancelar" runat="server" Text="Cancelar" formnovalidate="formnovalidate"
                        OnClick="btnCancelar_Click" Width="100px" />
                </div><br />
            </asp:Panel>
            <br />
            <asp:Panel ID="pnlDocumetos" runat="server" GroupingText="Cadastro de Documentos Pendentes"
                Visible="False" Width="60%">
                <table class="style13">
                    <tr>
                        <td class="style47">
                            <asp:Label ID="Label37" runat="server" Text="Documento"></asp:Label>
                            <br />
                            <asp:DropDownList ID="ddlDocumento" runat="server" Width="250px">
                            </asp:DropDownList>
                        </td>
                        <td class="style48">
                            <br />
                            <asp:Button ID="btnIncluirDoc" runat="server" Text="Incluir" OnClick="btnIncluirDoc_Click"
                                Width="100px" />
                            &nbsp;
                            <asp:Button ID="btnCancelarDoc" runat="server" OnClick="btnCancelarDoc_Click" Text="Finalizar"
                                Width="100px" />
                        </td>
                    </tr>
                </table>
                <br />
                <asp:GridView ID="gvwDocPendente" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                    CssClass="mGrid" EmptyDataText="Dados não localizados..." GridLines="Vertical"
                    Width="95%" DataKeyNames="ID_DOCUMENTO" OnRowCommand="gvwDocPendente_RowCommand"
                    OnRowCreated="gvwDocPendente_RowCreated" OnRowDataBound="gvwDocPendente_RowDataBound">
                    <AlternatingRowStyle BackColor="#D3D3D3" />
                    <Columns>
                        <asp:TemplateField HeaderText="Quitar Pendência" ShowHeader="False">
                            <ItemTemplate>
                                <abbr title="Quitar pendência!">
                                    <asp:ImageButton ID="ImgRemover" runat="server" CausesValidation="false" CommandName="Remover"
                                        formnovalidate="formnovalidate" ImageUrl="~/Imagens/quitar.png" OnClientClick="return ShowConfirm('Tem certeza que deseja quitar esta pendência?', this.ID);"
                                        Text="Remover Pendência" Width="25px" />
                                </abbr>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" Width="1%" />
                            <ItemStyle HorizontalAlign="Center" Width="1%" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="DESCRICAO" HeaderText="Documento">
                            <ItemStyle HorizontalAlign="Left" Width="100%" />
                        </asp:BoundField>
                    </Columns>
                    <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                    <PagerStyle CssClass="pagination" ForeColor="Black" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#1E90FF" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#F1F1F1" />
                    <SortedAscendingHeaderStyle BackColor="#808080" />
                    <SortedDescendingCellStyle BackColor="#CAC9C9" />
                    <SortedDescendingHeaderStyle BackColor="#383838" />
                </asp:GridView>
                <br />
            </asp:Panel>
            <br />
            <asp:Panel ID="pnlTitulacoes" runat="server" GroupingText="Titulações" Visible="False">
                <asp:GridView ID="gvwTitulacoes" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                    CssClass="mGrid" DataKeyNames="ID_ALUNO_TITULACAO" EmptyDataText="Dados não localizados..."
                    GridLines="Vertical" OnRowCommand="gvwTitulacoes_RowCommand" OnRowCreated="gvwTitulacoes_RowCreated"
                    OnRowDataBound="gvwTitulacoes_RowDataBound" Width="95%">
                    <AlternatingRowStyle BackColor="#D3D3D3" />
                    <Columns>
                        <asp:TemplateField HeaderText="Editar" ShowHeader="False">
                            <ItemTemplate>
                                <abbr title="Editar Titulação!">
                                    <asp:ImageButton ID="ImgAlterar" runat="server" CausesValidation="false" CommandName="Alterar"
                                        formnovalidate="formnovalidate" ImageUrl="~/Imagens/edit.png" Text="Alterar"
                                        Width="20px" />
                                </abbr>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" Width="1%" />
                            <ItemStyle HorizontalAlign="Center" Width="1%" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Excluir" ShowHeader="False">
                            <ItemTemplate>
                                <abbr title="Excluir titulação!">
                                    <asp:ImageButton ID="ImgExcluir" runat="server" CausesValidation="false" CommandName="Excluir"
                                        formnovalidate="formnovalidate" ImageUrl="~/Imagens/delete.png" OnClientClick="return ShowConfirm('Tem certeza que deseja excluir?', this.ID);"
                                        Text="Excluir" Width="20px" />
                                </abbr>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" Width="1%" />
                            <ItemStyle HorizontalAlign="Center" Width="1%" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="NIVEL" HeaderText="Nível">
                            <ItemStyle HorizontalAlign="Left" Width="30%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="TITULO" HeaderText="Título">
                            <ItemStyle HorizontalAlign="Left" Width="30%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="ANO_CONCLUSAO" HeaderText="Ano Conclusão">
                            <ItemStyle HorizontalAlign="Center" Width="10%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="INSTITUICAO" HeaderText="Instituição">
                            <ItemStyle HorizontalAlign="Left" Width="30%" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="Status">
                            <ItemTemplate>
                                <asp:Image ID="imgStatus" runat="server" Height="25px" Width="25px" />
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="SITUACAO" HeaderText="Status">
                            <ItemStyle HorizontalAlign="Center" Width="25%" />
                        </asp:BoundField>
                    </Columns>
                    <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                    <PagerStyle CssClass="pagination" ForeColor="Black" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#1E90FF" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#F1F1F1" />
                    <SortedAscendingHeaderStyle BackColor="#808080" />
                    <SortedDescendingCellStyle BackColor="#CAC9C9" />
                    <SortedDescendingHeaderStyle BackColor="#383838" />
                </asp:GridView>
                <br />
                <div class="legenda">
                    <asp:Button ID="btnInserirTitulacao" runat="server" OnClick="btnInserirTitulacao_Click"
                        Text="Inserir" Width="100px" />
                    &nbsp;
                    <asp:Button ID="btnCancelarInclusaoTitulacao" runat="server" formnovalidate="" 
                        OnClick="btnCancelarInclusaoTitulacao_Click" Text="Cancelar" 
                        Width="100px" />
                </div>
                <br />
                <asp:Panel ID="pnlCadastroTitulacao" runat="server" GroupingText="Cadastro de Titulações"
                    Visible="False">
                    <table class="style2">
                        <tr>
                            <td colspan="2">
                                <asp:Label ID="Label22" runat="server" Text="Nível de Titulação"></asp:Label>
                                <br />
                                <asp:DropDownList ID="ddlNivelTitulacao" runat="server" Width="300px">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td class="style4">
                                <asp:Label ID="Label25" runat="server" Text="Titulação"></asp:Label>
                                <br />
                                <asp:TextBox ID="TxtTitulacao" required type="text" runat="server" Width="300px"
                                    MaxLength="100"></asp:TextBox>
                            </td>
                            <td class="style49">
                                <asp:Label ID="Label47" runat="server" Text="Ano Conclusão"></asp:Label>
                                <br />
                                <asp:DropDownList ID="ddlAnoConclusao" runat="server" Width="150px">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <asp:Label ID="Label27" runat="server" Text="Instituição"></asp:Label>
                                <br />
                                <asp:TextBox ID="TxtInstituicao" type="text" required runat="server" Width="300px"
                                    MaxLength="100"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <asp:Label ID="Label28" runat="server" Text="Situação"></asp:Label>
                                <br />
                                <asp:DropDownList ID="ddlSituacaoTitulacao" runat="server" Width="150px">
                                    <asp:ListItem Value="A">Ativo</asp:ListItem>
                                    <asp:ListItem Value="I">Inativo</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                    </table>
                    <br />
                    <div class="legenda">
                        <asp:Button ID="btnConfirmarTitulacao" runat="server" Text="Confirmar" OnClick="btnConfirmarTitulacao_Click" />
                        &nbsp;
                        <asp:Button ID="btnCancelarTitulacao" runat="server" formnovalidate="" OnClick="btnCancelarTitulacao_Click"
                            Text="Cancelar" />
                    </div><br />
                </asp:Panel>
            </asp:Panel>
        </ContentTemplate>
        <Triggers>
            <asp:PostBackTrigger ControlID="TxtCPF" />
            <asp:PostBackTrigger ControlID="gvwPesquisa" />
        </Triggers>
    </asp:UpdatePanel>
</asp:Content>
